#include "CApp.h"
 
void CApp::OnRender()
{
    SDL_FillRect(Surf_Display, NULL, SDL_MapRGB(Surf_Display->format, 0, 0, 0));
    CArea::AreaControl.OnRender(Surf_Display, -CCamera::CameraControl.GetX(), -CCamera::CameraControl.GetY());
    for(std::list<CEntity*>::iterator it = CEntity::EntityList.begin(); it != CEntity::EntityList.end(); it++)
    {
        (*it)->OnRender(Surf_Display);
    }
    SDL_Flip(Surf_Display);
}